﻿//(c) Alexandru Ghiondea, 2011
using System;
using System.Collections.Generic;

using System.Text;
using JSONDotNET.Visitors;

namespace JSONDotNET.Syntax
{
    public class CompilationUnit
    {
        public ParsedObject Unit;

        public override string ToString()
        {
            JSONDotNET.Visitors.DisplayVisitor display = new DisplayVisitor();
            display.Visit(this);

            return display.ToString();
        }

        public void accept(ISyntaxVisitor visitor)
        {
            visitor.Visit(this);

            Unit.accept(visitor);
        }
    }
}
